package com.bw.goods.mvvm.view.fragment;

import android.content.Intent;
import android.os.Bundle;

import com.blankj.utilcode.util.BarUtils;
import com.blankj.utilcode.util.ToastUtils;
import com.bw.goods.BR;
import com.bw.goods.R;
import com.bw.goods.databinding.ActivityHomevaluesBinding;
import com.bw.goods.mvvm.viewmodel.HomeValuesViewmodel;
import com.bw.mvvm_common.field.UIField;
import com.bw.mvvm_common.mvvm.view.BaseActivity;

public
/**
 * @author Lishaohe
 * @description:
 * @date :2021/10/20 0020 下午 7:25
 *
 */
class HomeValuesActivity extends BaseActivity<ActivityHomevaluesBinding, HomeValuesViewmodel> {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        BarUtils.transparentStatusBar(this);
        BarUtils.setStatusBarLightMode(this, true);


        Bundle bundleExtra = getIntent().getBundleExtra(UIField.PAGEBUNDLE);
        int id = bundleExtra.getInt("id");

        vm.requestDetail(id);
    }


    @Override
    public int bindLayout() {
        return R.layout.activity_homevalues;

    }

    @Override
    public int initVerable() {
        return BR.vmm;
    }
}
